home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12725 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1018 b 

  1. Path: tudelft.nl!news
  2. From: Ejo Schrama <schrama@geo.tudelft.nl>
  3. Newsgroups: comp.lang.c++,comp.object,comp.object.logic
  4. Subject: Re: polymorphism
  5. Date: 21 Mar 1996 12:17:44 GMT
  6. Organization: TU Delft, Faculty of Geodetic Engineering
  7. Message-ID: <4irhd8$g1i@mo6.rc.tudelft.nl>
  8. References: <31513CBB.41C6@mi.leeds.ac.uk>
  9. NNTP-Posting-Host: dutgs7.geo.tudelft.nl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.12 (X11; I; HP-UX A.09.05 9000/735)
  14. X-URL: news:31513CBB.41C6@mi.leeds.ac.uk
  15.  
  16. aniko@mi.leeds.ac.uk (Aniko Simon) wrote:
  17. >Hi;
  18. >
  19. >Can anyone help: 
  20. >what does the term "polymorphism" mean in OO programming ?
  21. >
  22.  
  23. Yes, it means that a function, designed to work on a particular type
  24. of object (or objects) also works for inhereted objects. For example:
  25.  
  26.   change(world);
  27.  
  28. where change is a function designed to work with world objects can
  29. also be used for venus objects:
  30.  
  31.   change(venus);
  32.  
  33. where venus is inhereted from the base object world.
  34.  
  35. Ejo
  36.  
  37.